package demo3;


public class TestDemo2 {
    public static void main(String[] args) {
        Computer computer = new Computer();
        computer.powerOn();

        computer.useDeivce(new Mouse());
        computer.useDeivce(new KeyBoard());

        computer.powerOff();
    }
}
